package com.lb.uts.client.annotation;

import com.lb.uts.client.controller.UTSController;
import org.springframework.context.annotation.Import;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * @Description: 是否开启定时任务
 * @Author: liangb
 * @CreateDate: 2019/4/28 11:29
 * @Version: 3.0
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Import({UtsTaskRegister.class, UTSController.class,AutoRegistryScanner.class})
public @interface EnableUtsTask {

    /**
     * Alias for {@link #basePackages}.
     * <p>Allows for more concise annotation declarations if no other attributes
     * are needed &mdash; for example, {@code @ComponentScan("org.my.pkg")}
     * instead of {@code @ComponentScan(basePackages = "org.my.pkg")}.
     */
    @AliasFor("basePackages")
    String[] value() default {};

    /**
     * Base packages to scan for annotated components.
     * <p>{@link #value} is an alias for (and mutually exclusive with) this
     * attribute.
     */
    @AliasFor("value")
    String[] basePackages() default {};
}
